// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import { AbstractViewModel, Command, Inject, InjectBind, Model } from "../../resources/framework/base/mvvm/AbstractViewModel";
import common_model from "../../resources/mainModules/common/scripts/common_model";
import lobby_model from "./lobby_model";

const {ccclass, property} = cc._decorator;

@Model(lobby_model)
@Inject('common', common_model)
export default class lobby_view_model extends AbstractViewModel<lobby_model> {

    protected loaded() {
        console.log('lobbyvm loaded', this.__common_powersData,this.injectModel);
        this.injectModel.initData();

    }
    protected unload() {
        
    }

    @InjectBind __common_powersData: number;
    // @Command touchStart(){

    // }

    // update (dt) {}
}
